<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<form method="post" action="/store/addStore" th:object="${userId}">
    <table>
        <tr>
            <td>店铺ID</td>
            <td><input type="text" name="storeId"> </td>
        </tr>
        <tr>
            <td>店铺名</td>
            <td><input type="text" name="storeName"> </td>
        </tr>
        <tr>
            <td>店主ID</td>
            <td><input type="text" name="userId" th:value="${userId}" readonly="readonly"> </td>
        </tr>
        <tr>
            <td>所在城市</td>
            <td><input type="text" name="storeCity"> </td>
        </tr>
        <tr>
            <td>描述</td>
            <td><input name="storeDescription" id="" cols="30" rows="5"> </td>
        </tr>
        <tr >
            <td><input type="hidden" value="1" name="storeState"></td>
            <td><input type="hidden" value="0" name="storeIsdel"></td>

        </tr>
        <tr>
            <td>时间</td>
            <td><input type="text" name="storeCreatetime" id="hhhh"></td>
        </tr>
        <tr>
            <td>
                <input type="submit">
            </td>
        </tr>
    </table>
</form>

</body>
<script>
    var mydata= new Date();
    var tt=document.getElementById("hhhh");
    tt.value = mydata.toLocaleDateString();
</script>
</html>